package LeetCodeP;

public class LCP1Solution {

    public static  int game(int[] guess, int[] answer) {

        int count=0;
        for (int i=0;i<guess.length;i++){

                if (guess[i]==answer[i]){
                    count++;
                }

        }

        System.out.println(count);
        return count;
    }

    public static void main(String[] args) {
        int[] guess = {1,2,3};
        int[] answer = {1,2,3};
        game(guess,answer);
    }


}
